<?php
$jobs=Job::model()->findAll('uid=:uid', array(':uid'=>Yii::app()->user->id));
$criteria=new CDbCriteria;
$criteria->condition='`uid`=:uid AND status=1';
$criteria->params=array(':uid'=>Yii::app()->user->id);
$dataProvider=new CActiveDataProvider('Job',array(
    'criteria'=>$criteria,
    'pagination'=>array(
        'pageSize'=>20,
    ),
));

$session=new CHttpSession();
$session->open();
$session['i']=1;

?>

<div class="detailContent22 wp" style="min-height: 1335px">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="table3 paddingbotton80 ">
    <tbody><tr>
        <th width="14%" bgcolor="#efefef" align="center" class="th1">序号</th>
        <th width="42%" bgcolor="#efefef" class="th1">招聘职位</th>
        <th width="16%" bgcolor="#efefef" align="center" class="th1">发布时间</th>
        <th width="10%" bgcolor="#efefef" align="center" class="th1">审核状态</th>
        <th width="18%" bgcolor="#efefef" align="center">操作指令</th>
    </tr>

    <?php
    if(!empty($dataProvider->data))
    $this->widget('zii.widgets.CListView', array(
        'dataProvider'=>$dataProvider,
        'itemView'=>'_jobs',
        'ajaxUpdate'=>false,
        'template'=>"{items}\n{pager}" ,
//        'itemsTagName'=>'ul',
//        'itemsCssClass'=>'tb',
    ));
    ?>
</tbody></table>
</div>